﻿using Aribaccio.Device;
using Aribaccio;
using BDPAutodetect.Device;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BDPAutodetect.Mgrcore
{
    /// <summary>
    /// 检测设备基类
    /// </summary>
    public class DetectDeviceBase
    {
        /// <summary>
        /// 名称
        /// </summary>
        protected string Name { get; set; }
        /// <summary>
        /// 设备类型
        /// </summary>
        public DeviceType DeviceType { get; protected set; }
        /// <summary>
        /// 工位类型
        /// </summary>
        public DeviceStationType StationType { get; protected set; }
        /// <summary>
        /// 是否打开
        /// </summary>
        public virtual bool IsOpen { get; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="argName">名称</param>
        /// <param name="argDeviceType">设备类型</param>
        /// <param name="argStationType">工位类型</param>
        protected DetectDeviceBase(string argName, DeviceType argDeviceType, DeviceStationType argStationType = DeviceStationType.None)
        {
            this.Name = argName;
            this.DeviceType = argDeviceType;
            this.StationType = argStationType;
        }

        /// <summary>
        /// 初始化
        /// </summary>
        public virtual void Initialize()
        {
            
        }
    }
}
